package com.zhang.servicedriveruser.controller;

import com.zhang.internalcommon.dto.ResponseResult;
import com.zhang.servicedriveruser.service.CityDriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类功能描述
 *
 * @author Kye
 * @date 2025-04-18
 */
@RestController
@RequestMapping("/city-driver")
public class CityDriverController {
	@Autowired
	private CityDriverUserService cityDriverUserService;

	@GetMapping("/is-available-driver")
	public ResponseResult<Boolean> isAvailableDriver(@RequestParam String cityCode) {
		return cityDriverUserService.isAvailableDriver(cityCode);
	}
}
